package cn.joyfulmedia.common.log;

/**
 * 自定义LoggerFactory
 *
 * @author yujun
 * @create 2016-11-08 20:25
 */
public class CustomLoggerFactory {

    private static final String DEFAULT_LOG_NAME = "cn.joyfulmedia";

    /**
     * 获取Logger实例
     *
     * @return HuanXiCMLogger
     */
    public static HuanXiCMLogger getLogger() {
        return new HuanXiCMLogger(DEFAULT_LOG_NAME);
    }

    /**
     * 获取Logger实例
     *
     * @param loggerName 指定的logger名
     * @return HuanXiCMLogger
     */
    public static HuanXiCMLogger getLogger(String loggerName) {
        return new HuanXiCMLogger(loggerName);
    }

    /**
     * 获取Logger实例
     * @param clazz 类
     * @return HuanXiCMLogger
     */
    public static HuanXiCMLogger getLogger(Class<?> clazz) {
        return new HuanXiCMLogger(clazz);
    }

}
